using APP.HELPER.Utils;
using APP.HELPER.Utils.Security;
using APP.HELPER.Utils.System;

namespace Service
{
    internal static class MyRegister
    {
        public static string GenId()
        {
            string software = SystemInfoHelper.GetSoftware(APP.HELPER.Utils.AssemblyHelper.AssemblyTitle);
            string text = SystemInfoHelper.GetSystemInfo(software);
            string str = "";
            MyEncryption myEncryption = new MyEncryption();
            text = myEncryption.MD5Encrypt(text);
            str += text.Substring(0, 8);
            str = str + "-" + text.Substring(9, 4);
            str = str + "-" + text.Substring(14, 4);
            str = str + "-" + text.Substring(19, 4);
            return str + "-" + text.Substring(24);
        }
    }
}